#while循环输出九九乘法表
i=1
while i<=9:
    j=1
    while j<=i:
        print("{}×{}={:<3}".format(i,j,i*j),end='')
        j+=1
    print('')
    i+=1
print('='*80)
a=9
while a>0:
    b=1
    while b<=a:
        print("{}×{}={:<3}".format(a,b,a*b),end='')
        b+=1
    print('')
    a-=1
print('='*80)
c=1
k=8
while c<=9:
    d=1
    print(" "*k*10,end='')
    while d<=c:
        print("{}×{}={:<5}".format(c,d,c*d),end='')
        d+=1
    k-=1
    print('')
    c+=1
print('='*80)
e=9
l=0
while e>0:
    f=1
    print(" "*l*10,end='')
    while f<=e:
        print("{}×{}={:<5}".format(e,f,e*f),end='')
        f+=1
    l+=1
    print('')
    e-=1
